package com.kgcx.common.client.price;

import com.kgcx.common.client.opc.pojo.PriceActualPrice;
import com.kgcx.common.client.price.pojo.PriceCaculationPrice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "price")
public interface PriceClient {
    @GetMapping("caculationprice/caculatePrice")
    PriceActualPrice caculatePrice(@RequestBody PriceCaculationPrice priceCaculationPrice);

    @GetMapping("actualprice/getTotalPriceByOrderId")
    Long getTotalPriceByOrderId(@RequestParam(name = "orderIds") List<String> orderIds);

    @GetMapping("actualprice/getPriceActualPriceByOrderId")
    PriceActualPrice getPriceActualPriceByOrderId(@RequestParam(name = "orderId") String orderId);

 /*   @GetMapping("driver/getDriverList")
    ReturnData<List<Driver>> getDriverList(@RequestParam Map<String, Object> map);*/
}
